package com.suxin.rpc;

import com.alibaba.fastjson.JSONObject;
import com.suxin.config.FeignConfig;
import com.suxin.rpc.domain.DiagnosisRpcQueryDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author Tang
 * @classname CtRpc
 * @description [ 离线数据 ]
 * @date 2021/9/13 14:25
 */
@FeignClient(value = "CtRpc-Service", url = "${rpc.CtRpc}",
        configuration = {FeignConfig.class}
        )
public interface CtRpc {

    @PostMapping(value = {"/getFuelAndMileageData"})
    public JSONObject getData(@RequestBody DiagnosisRpcQueryDto diagnosisRpcQueryDto);

}
